
<div id="style_search_list">
	<p><strong>提示：</strong>搜索样式使用时，将自动收藏后使用。</p>
<ul>
{{if $styles}}
			<?PHP foreach($styles as $k => $item_all) {				$item = $item_all['EditorStyle'];   		?>
<li class="clearfix {{if $item['brush_image']}}brush-image{{/if}}" data-id="{{$item['id']}}" title="{{$item['name']}},{{$item_all['Favorite']['name']}}">
{{if $item['brush_image']}}
	<img data-id="{{$item['id']}}" data-type="brushImage" class="lazy hoverimg" src="{{$item['coverimg']}}" />
{{elseif $item['cate_id']>=50}}
	{{if $item['cover_width']}}
		<section class="_135editor" data-tools="135编辑器" data-id="{{$item['id']}}"><section style="text-align:center;"><section style="display:inline-block;width:{{$item['cover_width']}}px;"><img data-id="{{$item['id']}}" data-role="guide-img" style="max-width:100%;width:{{$item['cover_width']}}px;" title="{{$item['name']}}" src="{{$item['coverimg']}}" /></section></section></section>
	{{else}}
		<section class="_135editor" data-tools="135编辑器" data-id="{{$item['id']}}"><p style="text-align:center;"><img data-id="{{$item['id']}}" data-role="guide-img" title="{{$item['name']}}" src="{{$item['coverimg']}}" /></p></section>
	{{/if}}
{{else}}
	<section class="_135editor" data-tools="135编辑器" data-id="{{$item['id']}}">{{$item['content']}}</section>
{{/if}}
	<div style="position:absolute;bottom:0px;right:0px;width:150px;text-align:right;">
		{{if !empty($_SESSION['Auth']['Staff']) }}
		<a class="btn btn-xs" style="color:rgb(255, 129, 36);font-size:20px;" href="{{Router::url('/admin/editor_styles/edit/'.$item['id'])}}" target="_blank">
			<i class="fa fa-edit"></i>
		</a>
		{{/if}}


		{{if in_array($item['id'],$fovarited_list)}}


		<a class="btn btn-xs" style="color:rgb(255, 129, 36);font-size:20px;" href="javascript:;" data-url="{{$this->Html->url('/favorites/refresh/'.$item_all['Favorite']['id'])}}" onclick="return refreshfavorite(this);">
			<i class="fa fa-arrow-up" data-toggle="tooltip" data-container="body" data-placement="top" title="刷新收藏时间，移到顶部" ></i>
		</a>
		<a class="btn btn-favorite btn-xs" style="color:rgb(255, 129, 36);font-size:20px;" href="javascript:;"  data-id="{{$item['id']}}" data-model="EditorStyle">
			<i class="fa fa-heart" data-toggle="tooltip" data-container="body" data-placement="top" title="{{__('Cancel Favorite')}}"></i>
		</a>
		{{else}}
		<a class="btn btn-favorite btn-xs" style="color:rgb(255, 129, 36);font-size:20px;" href="javascript:;" data-id="{{$item['id']}}" data-model="EditorStyle" >
			<i class="fa fa-heart-o"  data-toggle="tooltip" data-container="body" data-placement="top" title="{{__('Favorite')}}" ></i>
		</a>
		{{/if}}

	</div>
</li>
			<?php } ?>
{{else}}
	<li class="ignore">无相关样式</li>
{{/if}}
</ul>
			
</div>